# 三位水仙花数

s = []
for i in range(100, 1000):
    b = str(i)
    a = 0
    for j in b:
        a += float(j)**3
    if a == i:
        s.append(b)
print(','.join(s))